# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from django.conf import settings
from django.contrib.auth.models import User

# Create your models here.

class project(models.Model):
    name = models.CharField(u"名称", max_length=30, unique=True)
    url = models.CharField(u"url", max_length=100, null=True, blank=True)
    ip = models.CharField(u"ip", max_length=100, null=True, blank=True)
    
    def __unicode__(self):
        return self.name
    
class version(models.Model):
    name = models.CharField(u"名称", max_length=30, unique=True)
    ftp = models.CharField(u"url", max_length=100, null=True, blank=True)
    jenkins = models.CharField(u"ip", max_length=100, null=True, blank=True)
    
    def __unicode__(self):
        return self.name

